﻿
//

//


using EMSNet.Core;
namespace EMSNet.Service.Entity;

/// <summary>
/// 仪表管理
/// </summary>
[Tenant("1300000000003")]
[SugarTable("emsdevice", "仪表管理")]
public class EmsDevice : EntityBase
{
    /// <summary>
    /// 租户Id
    /// </summary>
    [SugarColumn(ColumnName = "TenantId", ColumnDescription = "租户Id")]
    public virtual long? TenantId { get; set; }
    
    /// <summary>
    /// 创建者部门Id
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
    public virtual long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 创建者部门名称
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
    public virtual string? CreateOrgName { get; set; }
    
    /// <summary>
    /// 采集点编码
    /// </summary>
    [SugarColumn(ColumnName = "PollPointCode", ColumnDescription = "采集点编码", Length = 32)]
    public virtual string? PollPointCode { get; set; }
    
    /// <summary>
    /// 仪器编号
    /// </summary>
    [SugarColumn(ColumnName = "DeviceCode", ColumnDescription = "仪器编号", Length = 32)]
    public virtual string? DeviceCode { get; set; }
    
    /// <summary>
    /// 设备名称
    /// </summary>
    [SugarColumn(ColumnName = "DeviceName", ColumnDescription = "设备名称", Length = 32)]
    public virtual string? DeviceName { get; set; }
    
    /// <summary>
    /// 协议
    /// </summary>
    [SugarColumn(ColumnName = "ProtoType", ColumnDescription = "协议", Length = 32)]
    public virtual string? ProtoType { get; set; }
    
    /// <summary>
    /// IP/DIR
    /// </summary>
    [SugarColumn(ColumnName = "Address", ColumnDescription = "IP/DIR", Length = 32)]
    public virtual string? Address { get; set; }
    
    /// <summary>
    /// Port
    /// </summary>
    [SugarColumn(ColumnName = "Port", ColumnDescription = "Port", Length = 32)]
    public virtual string? Port { get; set; }
    
    /// <summary>
    /// RequestMsg
    /// </summary>
    [SugarColumn(ColumnName = "RequestMsg", ColumnDescription = "RequestMsg", Length = 32)]
    public virtual string? RequestMsg { get; set; }
    
    /// <summary>
    /// MsgSlavel
    /// </summary>
    [SugarColumn(ColumnName = "MsgSlavel", ColumnDescription = "MsgSlavel", Length = 32)]
    public virtual string? MsgSlavel { get; set; }
    
    /// <summary>
    /// 偏移公式
    /// </summary>
    [SugarColumn(ColumnName = "OffsetFunction", ColumnDescription = "偏移公式", Length = 32)]
    public virtual string? OffsetFunction { get; set; }
    
    /// <summary>
    /// 偏移系数
    /// </summary>
    [SugarColumn(ColumnName = "OffsetPercent", ColumnDescription = "偏移系数", Length = 32)]
    public virtual string? OffsetPercent { get; set; }
    
    /// <summary>
    /// 偏移量
    /// </summary>
    [SugarColumn(ColumnName = "OffsetDataVale", ColumnDescription = "偏移量", Length = 32)]
    public virtual string? OffsetDataVale { get; set; }
    
    /// <summary>
    /// 数据类型
    /// </summary>
    [SugarColumn(ColumnName = "DataType", ColumnDescription = "数据类型", Length = 32)]
    public virtual string? DataType { get; set; }
    
    /// <summary>
    /// 数据格式
    /// </summary>
    [SugarColumn(ColumnName = "DataFormat", ColumnDescription = "数据格式", Length = 32)]
    public virtual string? DataFormat { get; set; }
    
    /// <summary>
    /// 值
    /// </summary>
    [SugarColumn(ColumnName = "DataValue", ColumnDescription = "值", Length = 32)]
    public virtual string? DataValue { get; set; }
    
    /// <summary>
    /// 仪表值
    /// </summary>
    [SugarColumn(ColumnName = "DeviceValue", ColumnDescription = "仪表值", Length = 32)]
    public virtual string? DeviceValue { get; set; }
    
    /// <summary>
    /// 读表时间
    /// </summary>
    [SugarColumn(ColumnName = "ReadTime", ColumnDescription = "读表时间", Length = 32)]
    public virtual string? ReadTime { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnName = "Status", ColumnDescription = "状态", Length = 32)]
    public virtual string? Status { get; set; }
    
}
